<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
		<style type="text/css">
			.box {
				width: 500px;
				height: 300px;
				margin: 0 auto;
			}
			.one {
				width: 500px;
				height:100px;
				background-color: pink;
			}
			.two {
				width: 500px;
				height:100px;
				background-color: skyblue;
			}
			.three {
				width: 500px;
				height:100px;
				background-color: yellow;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<div class="one"><a href="#" id="one">删除</a></div>
			<div class="two" ><a href="" id="two">删除</a></div>
			<div class="three"><a href="" id="three">删除</a></div>
		</div>
	</body>
	<script type="text/javascript">
		$("#one").click(function(){
			$(this).parent().remove()
		})
	</script>
</html>
